import request from '@/utils/request'


// 全查支付
export function loadPay(query) {
    return request({
        url: '/admin/pay/getPayList',
        method: 'get',
        params: query
    })
}

// 全查退款
export function loadRefund(query) {
    return request({
        url: '/admin/pay/refund/getRefundList',
        method: 'get',
        params: query
    })
}

//获取支付单详情
export function getPayDetail(id) {
    return request({
        url: '/admin/pay/getPayDetail',
        method: 'get',
        params: { id }
    })
}